package cn.com.wangluotongxin.linux.docker;

import cn.hutool.core.thread.ThreadUtil;

public class LogContainerResultCallback extends LogResultCallback {

    StringBuilder builder = new StringBuilder();

    @Override
    void outLog(String log) {
        builder.append(log);
    }

    public String toString(Double timeout) {
        ThreadUtil.sleep(timeout * 1000);
        return builder.toString();
    }
}
